package common.models;

import java.io.Serializable;
import java.util.*;

import common.views.*;

public class MvcModel extends Observable implements Serializable {
	
	private static final long serialVersionUID = -4861292922405853987L;

	public MvcModel() { super(); }
	
    public void addView(MvcView view)
    {
        addObserver(view);
    }
    
    public void deleteView(MvcView view)
    {
        deleteObserver(view);
    }
    
    public void notifyViews()
    {
        setChanged();
        notifyObservers();
    }
}
